﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPageLogin.master" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="Login" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">

        //Add the javascript so we know where we want the enter key press to go


        function doClick(buttonName, e) {
            //the purpose of this function is to allow the enter key to 
            //point to the correct button to click.
            var key;

            if (window.event)
                key = window.event.keyCode;     //IE
            else
                key = e.which;     //firefox

            if (key == 13) {
                //Get the button the user wants to have clicked
                var btn = document.getElementById(buttonName);
                if (btn != null) { //If we find the button click it
                    btn.click();
                    event.keyCode = 0
                }
            }
        }


    </script>
    </telerik:RadScriptBlock>
    <asp:Panel id="pnl" runat="server" DefaultButton="rbtnLogin">

     <table class="text" width="90%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <tr>
      <td>  <asp:Label ID="lblUserName" runat="server" Text='<%$ Resources:Login , UserName %>'></asp:Label>
          <br />
        </td>
      <td>        <asp:Label ID="lblPassword" runat="server" Text='<%$ Resources:Login , Password %>'></asp:Label>
          <br />
        </td>
    </tr>
         <tr>
             <td >
                 <br />
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <telerik:RadTextBox ID="rtbUserName" runat="server">
                 </telerik:RadTextBox>
             </td>
             <td >
                 <br />
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <telerik:RadTextBox ID="rtbPassword" runat="server" TextMode="Password">
                 </telerik:RadTextBox>
             </td>
         </tr>


    <tr>
      <td height="40" align="justify" valign="bottom" style="text-align: left; vertical-align:middle;">              
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <asp:Label ID="lblLoginFailed" runat="server" SkinID="RedLabel"   
                    Text='<%$ Resources:Login , LoginFailed %>' Visible="False"></asp:Label></td>
      <td height="60" valign="middle"> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
                         <telerik:RadButton ID="rbtnLogin" runat="server" Text="Save"  meta:ResourceKey="rbtnLogin">
                        </telerik:RadButton>
      </td>
    </tr>
  </table>

  </asp:Panel>



</asp:Content>

